﻿using System;

namespace Com.FastSearch.SharePoint.BL.SearchManager.Admin
{
    /// <summary>
    /// Exception class for use when the <see cref="SearchManager"/> is
    /// incorrectly configured.
    /// </summary>
    public class SearchManagerConfigException : Exception
    {
        /// <summary>
        /// Create an exception with the given message.
        /// </summary>
        /// <param name="message">an error message</param>
        public SearchManagerConfigException(string message) : base(message)
        {
        }

        /// <summary>
        /// Create an exception with the given message and cause.
        /// </summary>
        /// <param name="message">an error message</param>
        /// <param name="ex">the exception that caused this exception</param>
        public SearchManagerConfigException(string message, Exception ex) : base(message, ex)
        {
        }
    }
}
